#-------------------------------------------------------------------------------
# By Daoyu @2010-07-06
#-------------------------------------------------------------------------------
from django.conf.urls.defaults import *

from django.contrib import admin
from uncle import settings

from uncle.util.links import show_403

admin.autodiscover()

urlpatterns = patterns('',
    (r'^site_media/(?P<path>.*)$' ,'django.views.static.serve',{'document_root':settings.STATIC_PATH}),
    (r'^upload/(?P<path>.*)$','django.views.static.serve',{'document_root':'/home/b25476/uncle/upload'}),
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    (r'^admin/', include(admin.site.urls)),
    
    (r'login/$','uncle.users.views.log_in'),
     (r'logging/$','uncle.users.views.logging'),
    (r'logout/$','uncle.users.views.log_out'),
    
    (r'^user/', include('uncle.users.urls')),
    (r'^project/', include('uncle.project.urls')),
    (r'^other/', 'uncle.util.links.other'),
    
    (r'^$','uncle.users.views.logging'),
    
    (r'^asset/(\d+)/', 'uncle.users.detail.play'),
    (r'^initcat/', 'uncle.util.links.init_category'),
    
    (r'^about/', 'uncle.util.links.about'),
    (r'^download/', 'uncle.util.file.download'),
    (r'^pwds/', 'uncle.util.links.show_pwd'),
    (r'^403/$', show_403,{}),
)
